 <?php 
       $jige = 75;
       $wy=89;
       $html=80;
       $javascript=71;
       $ave=($wy + $html + $javascript)/3;
       /*
       echo "平均分的及格线=$jige<br/>";
       echo "网页设计=$wy<br/>";
       echo "样式表=$html<br/>";
       echo "Js=$javascript<br/>";
       echo "你的平均分=$ave<br/>";
       echo "你的分数：";
       
       if ($ave >= $jige) {
           echo "及格";
       }else {
           echo "不及格";
       }
     */  
       
     ?>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
       平均分的及格线=<?php echo $jige; ?><br/>
       网页设计=<?php echo$wy; ?><br/>
       样式表=<?php echo $html; ?><br/>
       Js=<?php echo $javascript; ?><br/>
       你的平均分=<?php echo $ave; ?><br/>
       你的分数：<?php if($ave >= $jige) :?>
       <span style="color: green">及格</span>
       <?php else :?>
       <span style="color: red">不及格</span>
       <?php endif;?>
    </body>
</html>

